home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / text / hyper / ADtoHT2_1.lha / Source.lha / MyLib.lha / stdlib / malloc.doc < prev    next >
Encoding:
Text File  |  1995-04-11  |  830 b   |  32 lines

  1. MyLib.lib/malloc                                              MyLib.lib/malloc
  2.  
  3.     NAME
  4.     malloc - general memory allocation function
  5.  
  6.     SYNOPSIS
  7.     #include <stdlib.h>
  8.  
  9.     void *malloc(size_t Size);
  10.  
  11.     FUNCTION
  12.     The malloc() function allocates uninitialized space for an object whose
  13.     size is specified by size.
  14.     The allocated space is suitably aligned (after possible pointer coercion)
  15.     for storage of any type of object.
  16.     At program exit, all memory allocated via malloc() is automatically
  17.     free()d.
  18.  
  19.     INPUTS
  20.     Size - the size of the requested memory block
  21.  
  22.     RESULT
  23.     A pointer to the memory block, or NULL.
  24.     If NULL is returned, errno is set to ENOMEM.
  25.  
  26.     NOTE
  27.     malloc() cannot be used to allocate memory with specific attributes.
  28.     You must use AmigaOS functions to get such memory.
  29.  
  30.     SEE ALSO
  31.     free, calloc, realloc
  32.